package cn.dataling.dag.pojo;

import cn.dataling.dag.enums.DagWorkflowState;

import java.time.LocalDateTime;
import java.util.List;

public class DagWorkflow {
    /**
     * 工作流ID
     */
    private String id;
    /**
     * 工作流名称
     */
    private String name;
    /**
     * 工作流描述
     */
    private String description;
    /**
     * 工作流版本
     */
    private String version;
    /**
     * 工作流创建时间
     */
    private LocalDateTime createTime;
    /**
     * 节点完成时间
     */
    private LocalDateTime completedTime;
    /**
     * dag工作流节点
     */
    private List<DagWorkflowNode> dagWorkflowNodes;
    /**
     * dag工作流线
     */
    private List<DagWorkflowEdge> dagWorkflowEdges;
    /**
     * 工作流状态
     */
    private DagWorkflowState dagWorkflowState;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getCompletedTime() {
        return completedTime;
    }

    public void setCompletedTime(LocalDateTime completedTime) {
        this.completedTime = completedTime;
    }

    public List<DagWorkflowNode> getDagWorkflowNodes() {
        return dagWorkflowNodes;
    }

    public void setDagWorkflowNodes(List<DagWorkflowNode> dagWorkflowNodes) {
        this.dagWorkflowNodes = dagWorkflowNodes;
    }

    public List<DagWorkflowEdge> getDagWorkflowEdges() {
        return dagWorkflowEdges;
    }

    public void setDagWorkflowEdges(List<DagWorkflowEdge> dagWorkflowEdges) {
        this.dagWorkflowEdges = dagWorkflowEdges;
    }

    public DagWorkflowState getDagWorkflowState() {
        return dagWorkflowState;
    }

    public void setDagWorkflowState(DagWorkflowState dagWorkflowState) {
        this.dagWorkflowState = dagWorkflowState;
    }
}
